using System.Collections.Generic;
public class HopperView : StoreView
{
    List<Slot> blockslots = new List<Slot>();
    public override void _Ready()
    {
        base._Ready();
        ResetShiftClick();
    }
    public override void Create()
    {
        base.Create();
        for (int x = 0; x < 5; x++)
        {
            blockslots.Add(CreateBlockSlot(x, 47 + x * 21, -22));
        }
    }

    public override void Updata(Player player)
    {
        base.Updata(player);
        if (block != null)
        {
            Store stroe = block.blockEntity.GetStore();
            for (int x = 0; x < 5; x++)
            {
                blockslots[x].SetItemStack(stroe.GetItemStack(x));
            }
        }
    }
}
